[Android] Add the ability to set font family, weight, size, and style from RN #114
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adds the ability to set font family, weight, size, and style from RN.
Setting the proper font Family is required by our parent app, and there is no reliable way to set them in CSS/Style. We've then decided to follow the approach suggest by RN docs, and checked the default React Native TextInput component.
All of the code in this PR is taken from
ReactTextInputManager
class.Before start using it in wordpress-mobile/gutenberg-mobile#450 we need the same properties added to iOS.
To test it, just apply this GIST https://gist.github.com/daniloercoli/11f917e4cf1ee046875edbc843d9e85a to your local copy of GB and run the app as usual.